@extends('layouts.ajax_master')
@section('app_js')
@stop
@section('content')
    <table>
        <thead>
        <tr>
            <th width="90px">商品标题</th>
            <th width="110px">规格</th>
            <th width="120px">库存量</th>
            <th width="100px">起订量</th>
            <th width="140px">价格</th>
            <th width="100px">发布时间</th>
            <th width="90px">状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        @foreach($list as $v)
            <tr>
                <td>{{$v->product_name}}</td>
                <td>{{$v->spec}}</td>
                <td>{{$v->stock}}{{$v->unit}}</td>
                <td>{{$v->start_num}}{{$v->unit}}</td>
                <td><span>￥{{$v->price}}/{{$v->unit}}</span></td>
                <td>{{date('Y-m-d',$v->created)}}</td>
                <td >@if($v->status == 1)<span style="color:green;">审核通过</span> @elseif($v->status == 2)<span style="color:#f08300;">审核中</span> @else <span style="color:red;">审核未通过</span> @endif</td>
                <td><a href="javascript:;" data-product_id="{{ $v->product_id }}" class="delete">删除</a></td>
            </tr>
        @endforeach
        </tbody>
    </table>